<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
<!--     <meta http-equiv="refresh" content="30">  --> 
    <meta name="description" content="">
    <meta name="author" content="">
 	<c:set var="ctx" value="${pageContext.request.contextPath}"/>
    <title>看涨吞没模型</title>

    <!-- Bootstrap Core CSS -->
    <link href="${ctx}/style/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="${ctx}/style/bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">

    <!-- DataTables CSS -->
    <link href="${ctx}/style/bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" rel="stylesheet">

    <!-- DataTables Responsive CSS -->
    <link href="${ctx}/style/bower_components/datatables-responsive/css/dataTables.responsive.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="${ctx}/style/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="${ctx}/style/bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

    <div id="wrapper">

      <%@ include file="../nav.jsp" %>
        

        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">看涨吞没模型</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            DataTables Advanced Tables
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <div class="dataTable_wrapper">
                                <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                    <thead>
                                        <tr>
                                            <th title="股票名称">股票名称</th>
                                            <th title="今日上涨率">股票代码</th>
                                            <th title="最近一段时间上涨比率">当前价格</th>
                                            <th title="最近一次连续上涨率">今日上涨幅度(%)</th>
                                            <th title="最近一次上涨率/最近一次上涨天数">收盘价极大值</th>
                                            <th title="根据最近两年的均价，结合当前股指，计算出应该价格">收盘价极大值日期</th>
                                            <th title="根据最近两年的均价，结合当前股指，计算出应该价格">最大值</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    	{foreach from = $reachNewPeakModelList item=model key}
                                             <tr class="odd gradeX" {if ($model['todayIncrePercent'] gt 0) } style="color:#ff0000" {else} style="color:#008000" {/if} >
                                            <td title="股票代码{$model['ticker']}"><a href="http://quotes.money.163.com/{if ($model['exchangeCD'] eq 'XSHE')}1{elseif ($model['exchangeCD'] eq 'XSHG') }0{/if}{$model['ticker']}.html" target="_blank"> {$model['secShortName']} </a></td>
											<td title=""><a href="http://quotes.money.163.com/{if ($model['exchangeCD'] eq 'XSHE')}1{elseif ($model['exchangeCD'] eq 'XSHG') }0{/if}{$model['ticker']}.html" target="_blank">{$model['ticker']}</a></td>
											<td title="今日开盘价  天"> {($model['priceNow'])}</td>
											<td title="这次上涨经历了  天"> {($model['todayIncrePercent']*100)|string_format:'%.2f'}</td>
											<td title="最近一次上涨率">{($model['highestClosePrice'])}</td>
											<td title="最近一次连续上涨的天数">{($model['highestClosePriceDate'])}</td>
                                            <td title="应该价格">{($model['highestPrice'])}</td>
                                       		<td title="年上涨"><a href="javascript:void(0)" onClick="addUserStock('${steadyModel.ticker}','${steadyModel.exchangecd}')">关注</a></td>
                                       		
                                        </tr>
                                        {/foreach}
                                        
                                    </tbody>
                                </table>
                            </div>
                           
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
           
        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="${ctx}/style/bower_components/jquery/dist/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="${ctx}/style/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="${ctx}/style/bower_components/metisMenu/dist/metisMenu.min.js"></script>

    <!-- DataTables JavaScript -->
    <script src="${ctx}/style/bower_components/datatables/media/js/jquery.dataTables.min.js"></script>
    <script src="${ctx}/style/bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="${ctx}/style/dist/js/sb-admin-2.js"></script>

	<script src="${ctx}/style/js/refresh-index.js"></script>

    <!-- Page-Level Demo Scripts - Tables - Use for reference -->
    <script>
    $(document).ready(function() {
        $('#dataTables-example').DataTable({
                responsive: true,
                "order":[[3,"desc"]]
        });
    });
    </script>

</body>

</html>
